const mongoose = require('mongoose');
const RecipeCategory = require('../src/models/recipeCategory.model');

async function checkCategories() {
  try {
    await mongoose.connect('mongodb://localhost:27017/health_miniapp');
    console.log('Connected to database');

    const categories = await RecipeCategory.find();
    console.log('Recipe Categories:');
    console.log(JSON.stringify(categories, null, 2));

    await mongoose.disconnect();
  } catch (error) {
    console.error('Error:', error);
  }
}

checkCategories(); 